<?
	require_once('./application/models/berichtModel.php');
	class item_bericht extends item_abstract
	{
		protected $myModel;
		protected function init()
		{
			$this -> information['bericht_text'] = '';
			$this -> information['type'] = '';
			$this -> myModel = berichtModel::getInstance($this -> Db);	
		}	
		
		public function insert()
		{	
			if($this -> type == 'help'){
			$this -> myModel -> addHelp($this);
			}else{
			$this -> myModel -> addBericht($this);
			}
		}
		public function update()
		{
			$this -> myModel -> updBericht ($this);
		}
		public function verwijder()
		{
			$this -> myModel -> delBericht($this);
		}
		public function fill()
		{
			return $this -> myModel -> getBerichtId($this);
		}
		
		public function fillHelp(){
		
			return $this -> myModel -> getHelpId($this);

		
		}
		
		
	}
?>